<?php 
	require('config/config.php');
	include('header.php');
	
	$profiles = Profil::rechercheTout();
	
	if(\Utils\Outils::getValue('nom')){
		
	}
?>

		<form method="POST" action="">
			<fieldset>
				<legend>Modification de vos informations</legend>
				<p><label for="nom">Nom: </label><input type="text" name="nom" value=""></p>
				<p><label for="prenom">Prenom: </label><input type="text" name="prenom" value=""></p>
				<p><label for="mail">E-mail: </label><input type="text" name="mail" value=""></p>
				<p><label for="mdp">Profil: </label><select name="profil">
<?php
						foreach($profiles as $profil){
							echo "<option value='" . $profil->getId() . "'>" .$profil->getNom_profil()  ."</option>";
						}
?>
						</select></p>	
				<p><label for="mdp">Mot de passe actuel: </label><input type="password" name="mdp"></p>
				<p><label for="nouvmdp">Nouveau mot de passe: </label><input type="password" name="nouvmdp"></p>
				<p><label for="confmdp">Confirmer nouveau mot de passe: </label><input type="password" name="confmdp"></p>
			</fieldset>
			<input type="submit" name="envoie" value="Modifier">
		</form>
		</body>
</html>
